<?php
namespace App\Model;
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/29
 * Time: 18:12
 */
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Auth;




class Base extends Model{

    public $branch_id;
    public $store_id;
    public $uid;
    public $authories;
    public function __construct()
    {
        $branch_info = Auth::user();
        $this->branch_id = $branch_info['u_b_id'];  //公司
        $this->store_id  = $branch_info['u_d_id'];   //部门
        $this->uid       = $branch_info['u_id'];    //员工
        $this->authories = $branch_info['authories'];    //员工拥有的权限
    }
}